<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title><%= title %></title>

	<% include ../includes/head%>
</head>
<body>
	<% include ../includes/header%>
	
	<div id="container-inner">
		<ul id="breadcrumb-wrapper">
        
	    	<li>
	            <a href="index.html">
                <ins>
				    <div class="br-left"></div>
				    <div class="br-mid">
				    	主页
				    </div><!--br-mid-->
				    <div class="br-right">
				    </div><!--br-right-->
                </ins>    
		        </a>
            </li>  
            
            <li>
	            <a href="blog.html">
                <ins>
				    <div class="br-left"></div>
				    <div class="br-mid">
				    	用户信息
				    </div><!--br-mid-->
				    <div class="br-right">
				    </div><!--br-right-->
                </ins>    
		        </a>
            </li>
            
           
            <li id="page-title" style="margin-top: -12px">
          		<a href="/orderlist">查看订单</a>
        	</li><!--page-title-->
        </ul>
        <div id="inner-border"></div>
        <div class="clear"></div>
        <div id="contentwrap-inner">
        	<div class="row">

				<form method="post" action="/updataUser" class="form-horizontal" enctype="multipart/form-data">

					<div class="form-group">
						<label for="inputName" class="col-sm-2 control-label">用户名：</label>
						<div class="col-sm-10">
							<span><%= userdetail.name %></span>
							<!-- <input type="text" name ="name" id="inputName" class="form-control" value= "<%= userdetail.name %>"> -->
						</div>
					</div>
					<!-- <div class="form-group">
			          	<label for="signupPassword" class="col-sm-2 control-label">密码</label>
			          	<div class="col-sm-10">
			          	
			            <input type="password" id="signupPassword" name="password" class="form-control" value= "<%= userdetail.password %>">
			            </div>
			        </div> -->
					<div class="form-group">
						<label for="inpuEmail" class="col-sm-2 control-label">邮箱：</label>
						<div class="col-sm-10">
							<span><%= userdetail.email%></span>
							<!-- <input type="text" name="email" id="inpuEmail" class="form-control" value="<%= userdetail.email%>"></input> -->
							
						</div>
					</div>
					
					<div class="form-group">
						<label for="inputPoster" class="col-sm-2 control-label">手机号：</label>
						<div class="col-sm-10">
							<span><%= userdetail.tel %></span>
							<!-- <input type="text" name="tel" id="inputtEL" class="form-control" value="<%= userdetail.tel %>"> -->
						</div>
					</div>
					<%if(user.role == 1) {%>
					
					<%}else{%>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<a href="/userupdata" class="btn btn-danger">修改用户信息</a>
							</div>
						</div>
					<%}%>
					<!-- <div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="submit">保存</button>
						</div>
					</div> -->
				</form>
			</div>
			
			<div class="clear"></div>
        </div>		
	</div>
	<% include ../includes/footer%>
</body>
</html>